<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://www.w3.org/MarkUp/SCHEMA/xhtml11.xsd"
     xml:lang="en">
  <head>
    <title>Information Center for ARM</title>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
    <link type="text/css" rel="stylesheet" media="all" href="file://$TOOLKIT_DIR$/doc/infocenter/style/ewic.css" />
  </head>
  <body>
  <div id="topbanner"></div>
  <div id="titlebanner_small">
    <h2>Information Center for ARM</h2>
  </div>
  <div class="breadcrumb"><a href="$TOOLKIT_DIR$/doc/infocenter/index.ENU.html">Information Center for ARM</a> | EXAMPLES</div>
  <div class="mainblock">
   <h2>Example description</h2>

   <pre>  <!--Insert readme.txt-->
I2S DMA

Purpose:
	This is a simple example for I2S with DMA support:
	We use 2 I2S channels: I2S Transmit & Receive channel in the same kit to communicate each other.
	I2S configuration:
			- wordwidth: 16 bits
	  		- stereo mode
	  		- master mode for I2S_TX and slave for I2S_RX
	  		- Frequency = 44.1 kHz (x=8,y=51 - automatic setting)	 
	Using UART0 with this configuration:
			- 115200bps 
			- 8 data bit
			- No parity 
			- 1 stop bit 
			- No flow control 
	
Hardware configuration:
	This example tested on Keil MCB2300 platform v4.0 with LPC1768
	- P0.4(J.116) connect to P0.7(J.112)
	- P0.5(J.115) connect to P0.8(J.111)
	- P0.6(J.113) connect to p0.9(J.109)
	
Running mode:
	This example can run on RAM mode with a debugger or on FLASH after burning.
	
Note:
	- When I2S start, there are some dummy data 0x00 will be send while FIFO transmit empty, but I2S is used to transmit and 
	receive audio data, so these data are not important and can be ignored. 
			
-----------------------------------------------------------------------------------
I2S Interrupt


Purpose:
	This is a simple example for I2S: use 2 I2S channels: I2S Transmit & Receive channel in the same kit 
	to communicate each other.
	This example purpose is testing I2S Interrupt function.
	I2S configuration:
			- wordwidth: 16 bits
	  		- stereo mode
	  		- master mode for I2S_TX and slave for I2S_RX
	  		- Frequency = 44.1 kHz (x=8,y=51 - automatic setting)	 
	Using UART0 with this configuration:
			- 115200bps 
			- 8 data bit
			- No parity 
			- 1 stop bit 
			- No flow control 
	
Hardware configuration:
	This example tested on Keil MCB2300 platform v4.0 with LPC1768
	- P0.4(J.116) connect to P0.7(J.112)
	- P0.5(J.115) connect to P0.8(J.111)
	- P0.6(J.113) connect to p0.9(J.109)
	
Running mode:
	This example can run on RAM mode with a debugger or run on FLASH after burning.
	
Note:
	- When I2S start, there are some dummy data will be send while FIFO transmit empty, but I2S is used to transmit and 
	receive audio data, so it's not important and can be ignore. 
			
-----------------------------------------------------------------------------------
I2S 4 wire


Purpose:
	This is an example to test I2S 4-wire mode. 
	Use two board to communicate with each other.
	- First, board 1 transmit data to board 2. Board 2 receive data and store into its buffer.
	- Then, board 2 send back these received data to board 1. Board 1 receive data and verify these data.
	Free pin is used as GPIO pin
	I2S configuration:
			- wordwidth: 16 bits
	  		- stereo mode
	  		- Frequency = 44.1 kHz (x=8,y=51 - automatic setting)	 
	Using UART0 with this configuration:
			- 115200bps 
			- 8 data bit
			- No parity 
			- 1 stop bit 
			- No flow control 
	
Hardware configuration:
	This example tested on Keil MCB2300 platform v4.0 with LPC1768
	I2STX_CLK (P0.7) on board 1 connect to I2STX_CLK (P0.7) on board 2
	I2STX_WS (P0.8) on board 1 connect to I2STX_WS (P0.8) on board 2
	I2STX_SDA(P0.9) on board 1 connect to I2SRX_SDA (P0.6) on board 2
	I2STX_CLK (P0.7) on board 1 connect to I2SRX_CLK (P0.4) on board 2
	I2STX_WS(P0.8) on board 1 connect to I2SRX_WS (P0.5) on board 2
	I2SRX_SDA(P0.6) on board 1 connect to I2STX_SDA(P0.9) on board 2
	
	I2SRX_CLK(P0.4) on board 1 connect to GPIO2.0 (LED0) on the same board
	
Running mode:
	Both two board run in FLASH mode
	
Note:
	- Set macro "I2S_TRANSMIT" to choice Transmit/Receive program.
		
-----------------------------------------------------------------------------------
I2S 2 kits

Purpose:
	This is a simple example for I2S: use 2 I2S channels: I2S Transmit & Receive channel in separate board
	to communicate each other.
	I2S configuration:
			- wordwidth: 16 bits
	  		- stereo mode
	  		- master mode for I2S_TX and slave for I2S_RX
	  		- Frequency = 44.1 kHz (x=8,y=51 - automatic setting)	 
	Using UART0 with this configuration:
			- 115200bps 
			- 8 data bit
			- No parity 
			- 1 stop bit 
			- No flow control 
	
Hardware configuration:
	This example tested on Keil MCB2300 platform v4.0 with LPC1768
	
	- P0.4(J.116) on board 1 connect to P0.7(J.112) on board 2
	- P0.5(J.115) on board 1 connect to P0.8(J.111) on board 2
	- P0.6(J.113) on board 1 connect to p0.9(J.109) on board 2
	
Running mode:
	- Run Transmit program in board 1 on FLASH mode.
	- Run Receive program in board 2 on RAM mode. So you can debug CAN operation via COM0 port. 
	
Note:		

-----------------------------------------------------------------------------------
I2S polling

Purpose:
	This is a simple example for I2S: use 2 I2S channels: I2S Transmit & Receive channel in the same kit 
	to communicate each other.
	I2S configuration:
			- wordwidth: 16 bits
	  		- stereo mode
	  		- master mode for I2S_TX and slave for I2S_RX
	  		- Frequency = 44.1 kHz (x=8,y=51 - automatic setting)	 
	Using UART0 with this configuration:
			- 115200bps 
			- 8 data bit
			- No parity 
			- 1 stop bit 
			- No flow control 
	
Hardware configuration:
	This example tested on Keil MCB2300 platform v4.0 with LPC1768
	- P0.4(J.116) connect to P0.7(J.112)
	- P0.5(J.115) connect to P0.8(J.111)
	- P0.6(J.113) connect to p0.9(J.109)
	
Running mode:
	This example can run on RAM mode with a debugger or run on FLASH after burning.
	
Note:
	- When I2S start, there are some dummy data will be send while FIFO transmit empty, but I2S is used to transmit and 
	receive audio data, so it's not important and can be ignore. 

			  </pre>

  </div>
  </body>
</html>






